import 'package:find_friend/pages/login&register/model/shared_user_info.dart';
import 'package:find_friend/pages/mine/mine_xspace.dart';
import 'package:flutter/material.dart';

class MineBlackSpacePage extends StatefulWidget {
  @override
  _MineBlackSpacePageState createState() => _MineBlackSpacePageState();
}

class _MineBlackSpacePageState extends State<MineBlackSpacePage> {

  String mobile;

  @override
  void initState() {
    super.initState();

    SharedUserInfo.instance().then((value) {
      mobile = value.mobile;
      if(mounted) setState(() {});
    });
  }
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("黑匣子"),
        backgroundColor: Colors.white,
        centerTitle: true,
        leading: IconButton(
          onPressed: (){
            Navigator.of(context).pop();
          },
          icon: Image.asset("assets/fanhui.png"),
        ),
      ),
      body: Container(child: MineXSpaceView(isblack: true, showPostButton: false,mobile: mobile,)),
    );
  }
}